Skip to content

feat(desktop): add text size setting#3144

Merged
esengine merged 1 commit into
esengine:main-v2from
wade19990814-hue:codex/desktop-font-size
Jun 5, 2026
Merged

feat(desktop): add text size setting#3144
esengine merged 1 commit into
esengine:main-v2from
wade19990814-hue:codex/desktop-font-size

Conversation

@wade19990814-hue
Copy link
Copy Markdown
Contributor

@wade19990814-hue wade19990814-hue commented Jun 4, 2026

Summary

  • add a desktop text size preference with Small / Default / Large / Extra large options
  • persist the preference in localStorage and apply it before first paint via a root data-text-size attribute
  • route core desktop typography through reusable CSS tokens for controls, chat content, code, tool cards, composer, status bar, and settings

Scope

This is intentionally limited to text scaling. It does not add custom font-family selection, so it only partially relates to #3036. It also addresses the readability side of #3091 without touching cache behavior.

Related: #3036, #3091

ScreenShot

屏幕截图 2026-06-05 011441 屏幕截图 2026-06-05 011356

Test Plan

  • cd desktop/frontend && pnpm run build
  • cd desktop && go test ./...
  • Manual Windows desktop smoke test: changed text size in Settings -> Appearance and verified the UI updates and persists

@github-actions github-actions Bot added the v2 Go rewrite (1.x) — main-v2 branch, active development label Jun 4, 2026
@wade19990814-hue wade19990814-hue force-pushed the codex/desktop-font-size branch from 2ddaec1 to 45494cf Compare June 5, 2026 07:47
Copy link
Copy Markdown
Owner

@esengine esengine left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

桌面端字号设置:CSS --font-scale token 驱动(small .94/default 1/large 1.08/xlarge 1.16),localStorage 持久化 + 首帧前应用,纯缩放无结构改动,私有模式存储失败已兜底。本地在最新 main-v2(含 #3201/#3208)上试合 + wails build 端到端通过,tsc 干净。合并。

@esengine esengine merged commit b310e76 into esengine:main-v2 Jun 5, 2026
8 checks passed
@wade19990814-hue wade19990814-hue deleted the codex/desktop-font-size branch June 5, 2026 08:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

v2 Go rewrite (1.x) — main-v2 branch, active development

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants